home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 36
/
Amiga Format CD36 (1999-01-22)(Future Publishing)(GB)[!][issue 1999-02].iso
/
-seriously_amiga-
/
misc
/
megabook
/
storage
/
sendfax
/
stfaxpro_fax.mbrx
next >
Wrap
Text File
|
1998-12-12
|
1KB
|
61 lines
/*
** STFax Pro SendFax Script v1.0 by Steve Clack (for MegaBook 4+)
**
** ©1998 Liquid Software Design
**
** steeevc@ndirect.co.uk - http://www.ndirect.co.uk/~mattw/steve
**
** Firstly, select the fax in STFax Pro that you wish to send, or create a new
** fax and leave the edit window open, then go to MegaBook and choose the
** person you wish to send the fax to. If STFax is not loaded when you run
** the script, it will load it but then ask you to select the fax as otherwise
*/
/*
STFax's path is on the next line. This should not need changing.
*/
STFaxPath = 'STFax:STFax'
parse arg Number
/* Check if STFax is running, if not then run it. */
if ~show('P', 'STFAX.1') then do
address command
'Run >nil: ' STFaxPath
/* Wait for the ARexx port to open */
do 5 while ~show('P', 'STFAX.1')
'Sys:rexxc/waitforport STFAX.1'
end
address MEGABOOK.01
REQUEST "Select the fax you wish to send (or create a new one) and then click OK." GADS "OK"
end
address STFAX.1
options results
SHOW
SEND '"'Number'"'
status = rc
if status = 15 then do
address MEGABOOK.01
REQUEST "You need to save the fax before transmission, do you wish to do it now?" GADS "Yes|No"
status = rc
if status = 1 then do
address STFAX.1
SAVE
SEND '"'Number'"'
end
end